package o;

import com.huawei.hms.framework.network.restclient.hwhttp.HttpContants;
import java.io.IOException;
import o.fuo.d;
import okhttp3.internal.connection.RealConnection;
import okhttp3.internal.connection.StreamAllocation;

public final class fvl implements fuo {
    public final fuv ˏ;

    public fvl(fuv o_fuv) {
        this.ˏ = o_fuv;
    }

    public fvb ˎ(d dVar) throws IOException {
        fvz o_fvz = (fvz) dVar;
        fus ˊ = o_fvz.ˊ();
        StreamAllocation ʻ = o_fvz.ʻ();
        fvv newStream = ʻ.newStream(this.ˏ, dVar, !ˊ.ˋ().equals(HttpContants.HTTP_METHOD_GET));
        RealConnection connection = ʻ.connection();
        fvb ˊ2 = o_fvz.ˊ(ˊ, ʻ, newStream, connection);
        if (connection.isMultiplexed() && connection.successCount == 0) {
            fur ˏ = ˊ.ˏ();
            this.ˏ.ˋ(ˏ.ʻ(), ˏ.ॱॱ(), ˏ.ˋ());
        }
        return ˊ2;
    }
}
